package com.wf.messageBoard.service.call;

import com.wf.apicommons.utils.CommonResult;
import com.wf.messageBoard.service.call.impl.FeignFallbackServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 *调用聊天管理微服务
 */
@FeignClient(value = "chat-management-services",fallback = FeignFallbackServiceImpl.class)
public interface ChatFeignService {

    /**
     * 推送聊天消息
     * @param message
     * @return
     */
    @PostMapping(value = "/chatRelated/pushChatMessage")
    CommonResult<String> pushLeavingAMessageData(@RequestBody String message);
}
